// https://www.bilibili.com/video/BV1d54y1f7B3?spm_id_from=333.788.videopod.episodes&vd_source=d6fe65f095f01f05591e89d810720ccc&p=30
// 2024-10-23

public class P033_字符串搜索_库函数法 {

    public static void main(String[] args) {
        String txt = "ABCABCAABCABCD";
        String pat = "ABCABCD";

        System.out.println(txt.indexOf(pat));
    }

}
